from Base.base import Base

from selenium.webdriver.common.by import By
import time

class PageBaidu(Base):
    url = 'http://www.baidu.com'
    search = (By.ID, 'kw')
    btn = (By.ID, 'su')
    def searchyewu(self,a):
        self.get_url(self.url)
        time.sleep(2)
        self.find_ele(self.search).send_keys(a)
        time.sleep(2)
        self.find_ele(self.btn).click()
        time.sleep(2)

